<p class="Paragraph">RSet Text As String = Text or RSet Variable1 = Variable2 <help:key-word value="RSet" tag="kw66602_1" xmlns:help="http://openoffice.org/2000/help"/></p>
<p class="Paragraph">Text: Any string variable.</p>
<p class="Paragraph">Text: String to be right-aligned within the string variable.</p>
<p class="Paragraph">Variable1: User-defined variable as a target for the copied variable.</p>
<p class="Paragraph">Variable2: User-defined variable to be copied to another variable.</p>
<p class="Paragraph">If the string is shorter than the string variable, <span class="T1">RSet</span> aligns the string to the right within the string variable. Any remaining characters in the string variable are replaced with spaces. If the string is longer than the string variable, characters exceeding the length of the variable are truncated, and only the remaining characters are right-aligned within the string variable.</p>
<p class="Paragraph">The <span class="T1">RSet statement</span> can also be used to assign variables of one user-defined type to those of another.</p>
<p class="Paragraph">The example uses the <span class="T1">RSet</span> and <span class="T1">LSet</span> statements to modify the left and right alignment of a string.</p>
<p class="P2">Example:</p>
<p class="PropText">Sub ExampleRLSet</p>
<p class="PropText"><text:tab-stop xmlns:text="http://openoffice.org/2000/text"/>Dim sVar as string</p>
<p class="PropText"><text:tab-stop xmlns:text="http://openoffice.org/2000/text"/>Dim sExpr as string</p>